package com.demo.easyExcel.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ColumnWidth(20) //宽度
@HeadRowHeight(70) //头部的行高
@ContentRowHeight(40) //正文的行高
public class People {
    @ExcelProperty("排名")
    private String id;
    @ExcelProperty("名字")
    private String name;
    @ExcelProperty("年龄")
    private String age;
}
